package ruifight.member.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class IntegralRecordExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public IntegralRecordExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIntegralRecordIdIsNull() {
            addCriterion("integralRecordId is null");
            return (Criteria) this;
        }

        public Criteria andIntegralRecordIdIsNotNull() {
            addCriterion("integralRecordId is not null");
            return (Criteria) this;
        }

        public Criteria andIntegralRecordIdEqualTo(Long value) {
            addCriterion("integralRecordId =", value, "integralRecordId");
            return (Criteria) this;
        }

        public Criteria andIntegralRecordIdNotEqualTo(Long value) {
            addCriterion("integralRecordId <>", value, "integralRecordId");
            return (Criteria) this;
        }

        public Criteria andIntegralRecordIdGreaterThan(Long value) {
            addCriterion("integralRecordId >", value, "integralRecordId");
            return (Criteria) this;
        }

        public Criteria andIntegralRecordIdGreaterThanOrEqualTo(Long value) {
            addCriterion("integralRecordId >=", value, "integralRecordId");
            return (Criteria) this;
        }

        public Criteria andIntegralRecordIdLessThan(Long value) {
            addCriterion("integralRecordId <", value, "integralRecordId");
            return (Criteria) this;
        }

        public Criteria andIntegralRecordIdLessThanOrEqualTo(Long value) {
            addCriterion("integralRecordId <=", value, "integralRecordId");
            return (Criteria) this;
        }

        public Criteria andIntegralRecordIdIn(List<Long> values) {
            addCriterion("integralRecordId in", values, "integralRecordId");
            return (Criteria) this;
        }

        public Criteria andIntegralRecordIdNotIn(List<Long> values) {
            addCriterion("integralRecordId not in", values, "integralRecordId");
            return (Criteria) this;
        }

        public Criteria andIntegralRecordIdBetween(Long value1, Long value2) {
            addCriterion("integralRecordId between", value1, value2, "integralRecordId");
            return (Criteria) this;
        }

        public Criteria andIntegralRecordIdNotBetween(Long value1, Long value2) {
            addCriterion("integralRecordId not between", value1, value2, "integralRecordId");
            return (Criteria) this;
        }

        public Criteria andMemberInfoIdIsNull() {
            addCriterion("memberInfoId is null");
            return (Criteria) this;
        }

        public Criteria andMemberInfoIdIsNotNull() {
            addCriterion("memberInfoId is not null");
            return (Criteria) this;
        }

        public Criteria andMemberInfoIdEqualTo(Long value) {
            addCriterion("memberInfoId =", value, "memberInfoId");
            return (Criteria) this;
        }

        public Criteria andMemberInfoIdNotEqualTo(Long value) {
            addCriterion("memberInfoId <>", value, "memberInfoId");
            return (Criteria) this;
        }

        public Criteria andMemberInfoIdGreaterThan(Long value) {
            addCriterion("memberInfoId >", value, "memberInfoId");
            return (Criteria) this;
        }

        public Criteria andMemberInfoIdGreaterThanOrEqualTo(Long value) {
            addCriterion("memberInfoId >=", value, "memberInfoId");
            return (Criteria) this;
        }

        public Criteria andMemberInfoIdLessThan(Long value) {
            addCriterion("memberInfoId <", value, "memberInfoId");
            return (Criteria) this;
        }

        public Criteria andMemberInfoIdLessThanOrEqualTo(Long value) {
            addCriterion("memberInfoId <=", value, "memberInfoId");
            return (Criteria) this;
        }

        public Criteria andMemberInfoIdIn(List<Long> values) {
            addCriterion("memberInfoId in", values, "memberInfoId");
            return (Criteria) this;
        }

        public Criteria andMemberInfoIdNotIn(List<Long> values) {
            addCriterion("memberInfoId not in", values, "memberInfoId");
            return (Criteria) this;
        }

        public Criteria andMemberInfoIdBetween(Long value1, Long value2) {
            addCriterion("memberInfoId between", value1, value2, "memberInfoId");
            return (Criteria) this;
        }

        public Criteria andMemberInfoIdNotBetween(Long value1, Long value2) {
            addCriterion("memberInfoId not between", value1, value2, "memberInfoId");
            return (Criteria) this;
        }

        public Criteria andIntegralTypeIsNull() {
            addCriterion("integralType is null");
            return (Criteria) this;
        }

        public Criteria andIntegralTypeIsNotNull() {
            addCriterion("integralType is not null");
            return (Criteria) this;
        }

        public Criteria andIntegralTypeEqualTo(Integer value) {
            addCriterion("integralType =", value, "integralType");
            return (Criteria) this;
        }

        public Criteria andIntegralTypeNotEqualTo(Integer value) {
            addCriterion("integralType <>", value, "integralType");
            return (Criteria) this;
        }

        public Criteria andIntegralTypeGreaterThan(Integer value) {
            addCriterion("integralType >", value, "integralType");
            return (Criteria) this;
        }

        public Criteria andIntegralTypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("integralType >=", value, "integralType");
            return (Criteria) this;
        }

        public Criteria andIntegralTypeLessThan(Integer value) {
            addCriterion("integralType <", value, "integralType");
            return (Criteria) this;
        }

        public Criteria andIntegralTypeLessThanOrEqualTo(Integer value) {
            addCriterion("integralType <=", value, "integralType");
            return (Criteria) this;
        }

        public Criteria andIntegralTypeIn(List<Integer> values) {
            addCriterion("integralType in", values, "integralType");
            return (Criteria) this;
        }

        public Criteria andIntegralTypeNotIn(List<Integer> values) {
            addCriterion("integralType not in", values, "integralType");
            return (Criteria) this;
        }

        public Criteria andIntegralTypeBetween(Integer value1, Integer value2) {
            addCriterion("integralType between", value1, value2, "integralType");
            return (Criteria) this;
        }

        public Criteria andIntegralTypeNotBetween(Integer value1, Integer value2) {
            addCriterion("integralType not between", value1, value2, "integralType");
            return (Criteria) this;
        }

        public Criteria andIntegralIsNull() {
            addCriterion("integral is null");
            return (Criteria) this;
        }

        public Criteria andIntegralIsNotNull() {
            addCriterion("integral is not null");
            return (Criteria) this;
        }

        public Criteria andIntegralEqualTo(Integer value) {
            addCriterion("integral =", value, "integral");
            return (Criteria) this;
        }

        public Criteria andIntegralNotEqualTo(Integer value) {
            addCriterion("integral <>", value, "integral");
            return (Criteria) this;
        }

        public Criteria andIntegralGreaterThan(Integer value) {
            addCriterion("integral >", value, "integral");
            return (Criteria) this;
        }

        public Criteria andIntegralGreaterThanOrEqualTo(Integer value) {
            addCriterion("integral >=", value, "integral");
            return (Criteria) this;
        }

        public Criteria andIntegralLessThan(Integer value) {
            addCriterion("integral <", value, "integral");
            return (Criteria) this;
        }

        public Criteria andIntegralLessThanOrEqualTo(Integer value) {
            addCriterion("integral <=", value, "integral");
            return (Criteria) this;
        }

        public Criteria andIntegralIn(List<Integer> values) {
            addCriterion("integral in", values, "integral");
            return (Criteria) this;
        }

        public Criteria andIntegralNotIn(List<Integer> values) {
            addCriterion("integral not in", values, "integral");
            return (Criteria) this;
        }

        public Criteria andIntegralBetween(Integer value1, Integer value2) {
            addCriterion("integral between", value1, value2, "integral");
            return (Criteria) this;
        }

        public Criteria andIntegralNotBetween(Integer value1, Integer value2) {
            addCriterion("integral not between", value1, value2, "integral");
            return (Criteria) this;
        }

        public Criteria andIntegralCommentIsNull() {
            addCriterion("integralComment is null");
            return (Criteria) this;
        }

        public Criteria andIntegralCommentIsNotNull() {
            addCriterion("integralComment is not null");
            return (Criteria) this;
        }

        public Criteria andIntegralCommentEqualTo(String value) {
            addCriterion("integralComment =", value, "integralComment");
            return (Criteria) this;
        }

        public Criteria andIntegralCommentNotEqualTo(String value) {
            addCriterion("integralComment <>", value, "integralComment");
            return (Criteria) this;
        }

        public Criteria andIntegralCommentGreaterThan(String value) {
            addCriterion("integralComment >", value, "integralComment");
            return (Criteria) this;
        }

        public Criteria andIntegralCommentGreaterThanOrEqualTo(String value) {
            addCriterion("integralComment >=", value, "integralComment");
            return (Criteria) this;
        }

        public Criteria andIntegralCommentLessThan(String value) {
            addCriterion("integralComment <", value, "integralComment");
            return (Criteria) this;
        }

        public Criteria andIntegralCommentLessThanOrEqualTo(String value) {
            addCriterion("integralComment <=", value, "integralComment");
            return (Criteria) this;
        }

        public Criteria andIntegralCommentLike(String value) {
            addCriterion("integralComment like", value, "integralComment");
            return (Criteria) this;
        }

        public Criteria andIntegralCommentNotLike(String value) {
            addCriterion("integralComment not like", value, "integralComment");
            return (Criteria) this;
        }

        public Criteria andIntegralCommentIn(List<String> values) {
            addCriterion("integralComment in", values, "integralComment");
            return (Criteria) this;
        }

        public Criteria andIntegralCommentNotIn(List<String> values) {
            addCriterion("integralComment not in", values, "integralComment");
            return (Criteria) this;
        }

        public Criteria andIntegralCommentBetween(String value1, String value2) {
            addCriterion("integralComment between", value1, value2, "integralComment");
            return (Criteria) this;
        }

        public Criteria andIntegralCommentNotBetween(String value1, String value2) {
            addCriterion("integralComment not between", value1, value2, "integralComment");
            return (Criteria) this;
        }

        public Criteria andAttr1IsNull() {
            addCriterion("attr1 is null");
            return (Criteria) this;
        }

        public Criteria andAttr1IsNotNull() {
            addCriterion("attr1 is not null");
            return (Criteria) this;
        }

        public Criteria andAttr1EqualTo(String value) {
            addCriterion("attr1 =", value, "attr1");
            return (Criteria) this;
        }

        public Criteria andAttr1NotEqualTo(String value) {
            addCriterion("attr1 <>", value, "attr1");
            return (Criteria) this;
        }

        public Criteria andAttr1GreaterThan(String value) {
            addCriterion("attr1 >", value, "attr1");
            return (Criteria) this;
        }

        public Criteria andAttr1GreaterThanOrEqualTo(String value) {
            addCriterion("attr1 >=", value, "attr1");
            return (Criteria) this;
        }

        public Criteria andAttr1LessThan(String value) {
            addCriterion("attr1 <", value, "attr1");
            return (Criteria) this;
        }

        public Criteria andAttr1LessThanOrEqualTo(String value) {
            addCriterion("attr1 <=", value, "attr1");
            return (Criteria) this;
        }

        public Criteria andAttr1Like(String value) {
            addCriterion("attr1 like", value, "attr1");
            return (Criteria) this;
        }

        public Criteria andAttr1NotLike(String value) {
            addCriterion("attr1 not like", value, "attr1");
            return (Criteria) this;
        }

        public Criteria andAttr1In(List<String> values) {
            addCriterion("attr1 in", values, "attr1");
            return (Criteria) this;
        }

        public Criteria andAttr1NotIn(List<String> values) {
            addCriterion("attr1 not in", values, "attr1");
            return (Criteria) this;
        }

        public Criteria andAttr1Between(String value1, String value2) {
            addCriterion("attr1 between", value1, value2, "attr1");
            return (Criteria) this;
        }

        public Criteria andAttr1NotBetween(String value1, String value2) {
            addCriterion("attr1 not between", value1, value2, "attr1");
            return (Criteria) this;
        }

        public Criteria andAttr2IsNull() {
            addCriterion("attr2 is null");
            return (Criteria) this;
        }

        public Criteria andAttr2IsNotNull() {
            addCriterion("attr2 is not null");
            return (Criteria) this;
        }

        public Criteria andAttr2EqualTo(String value) {
            addCriterion("attr2 =", value, "attr2");
            return (Criteria) this;
        }

        public Criteria andAttr2NotEqualTo(String value) {
            addCriterion("attr2 <>", value, "attr2");
            return (Criteria) this;
        }

        public Criteria andAttr2GreaterThan(String value) {
            addCriterion("attr2 >", value, "attr2");
            return (Criteria) this;
        }

        public Criteria andAttr2GreaterThanOrEqualTo(String value) {
            addCriterion("attr2 >=", value, "attr2");
            return (Criteria) this;
        }

        public Criteria andAttr2LessThan(String value) {
            addCriterion("attr2 <", value, "attr2");
            return (Criteria) this;
        }

        public Criteria andAttr2LessThanOrEqualTo(String value) {
            addCriterion("attr2 <=", value, "attr2");
            return (Criteria) this;
        }

        public Criteria andAttr2Like(String value) {
            addCriterion("attr2 like", value, "attr2");
            return (Criteria) this;
        }

        public Criteria andAttr2NotLike(String value) {
            addCriterion("attr2 not like", value, "attr2");
            return (Criteria) this;
        }

        public Criteria andAttr2In(List<String> values) {
            addCriterion("attr2 in", values, "attr2");
            return (Criteria) this;
        }

        public Criteria andAttr2NotIn(List<String> values) {
            addCriterion("attr2 not in", values, "attr2");
            return (Criteria) this;
        }

        public Criteria andAttr2Between(String value1, String value2) {
            addCriterion("attr2 between", value1, value2, "attr2");
            return (Criteria) this;
        }

        public Criteria andAttr2NotBetween(String value1, String value2) {
            addCriterion("attr2 not between", value1, value2, "attr2");
            return (Criteria) this;
        }

        public Criteria andAttr3IsNull() {
            addCriterion("attr3 is null");
            return (Criteria) this;
        }

        public Criteria andAttr3IsNotNull() {
            addCriterion("attr3 is not null");
            return (Criteria) this;
        }

        public Criteria andAttr3EqualTo(String value) {
            addCriterion("attr3 =", value, "attr3");
            return (Criteria) this;
        }

        public Criteria andAttr3NotEqualTo(String value) {
            addCriterion("attr3 <>", value, "attr3");
            return (Criteria) this;
        }

        public Criteria andAttr3GreaterThan(String value) {
            addCriterion("attr3 >", value, "attr3");
            return (Criteria) this;
        }

        public Criteria andAttr3GreaterThanOrEqualTo(String value) {
            addCriterion("attr3 >=", value, "attr3");
            return (Criteria) this;
        }

        public Criteria andAttr3LessThan(String value) {
            addCriterion("attr3 <", value, "attr3");
            return (Criteria) this;
        }

        public Criteria andAttr3LessThanOrEqualTo(String value) {
            addCriterion("attr3 <=", value, "attr3");
            return (Criteria) this;
        }

        public Criteria andAttr3Like(String value) {
            addCriterion("attr3 like", value, "attr3");
            return (Criteria) this;
        }

        public Criteria andAttr3NotLike(String value) {
            addCriterion("attr3 not like", value, "attr3");
            return (Criteria) this;
        }

        public Criteria andAttr3In(List<String> values) {
            addCriterion("attr3 in", values, "attr3");
            return (Criteria) this;
        }

        public Criteria andAttr3NotIn(List<String> values) {
            addCriterion("attr3 not in", values, "attr3");
            return (Criteria) this;
        }

        public Criteria andAttr3Between(String value1, String value2) {
            addCriterion("attr3 between", value1, value2, "attr3");
            return (Criteria) this;
        }

        public Criteria andAttr3NotBetween(String value1, String value2) {
            addCriterion("attr3 not between", value1, value2, "attr3");
            return (Criteria) this;
        }

        public Criteria andCreateDateIsNull() {
            addCriterion("createDate is null");
            return (Criteria) this;
        }

        public Criteria andCreateDateIsNotNull() {
            addCriterion("createDate is not null");
            return (Criteria) this;
        }

        public Criteria andCreateDateEqualTo(Date value) {
            addCriterion("createDate =", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateNotEqualTo(Date value) {
            addCriterion("createDate <>", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateGreaterThan(Date value) {
            addCriterion("createDate >", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateGreaterThanOrEqualTo(Date value) {
            addCriterion("createDate >=", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateLessThan(Date value) {
            addCriterion("createDate <", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateLessThanOrEqualTo(Date value) {
            addCriterion("createDate <=", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateIn(List<Date> values) {
            addCriterion("createDate in", values, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateNotIn(List<Date> values) {
            addCriterion("createDate not in", values, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateBetween(Date value1, Date value2) {
            addCriterion("createDate between", value1, value2, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateNotBetween(Date value1, Date value2) {
            addCriterion("createDate not between", value1, value2, "createDate");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}